using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using CodRevit.Views;

namespace CodRevit.Commands
{
    [Transaction(TransactionMode.Manual)]
    public class AboutProjectCommand : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            // 创建并显示About窗口
            AboutProject aboutWindow = new AboutProject();
            aboutWindow.ShowDialog();

            return Result.Succeeded;
        }
    }
}